package com.mldong.modules.cms.dto;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.*;
import com.mldong.validation.Groups;
/**
 * <p>
 * 页面访问量
 * </p>
 *
 * @author mldong
 * @since 2022-10-23
 */
@Getter
@Setter
@TableName("cms_view_click")
@ApiModel(value = "ViewClickParam对象", description = "页面访问量")
public class ViewClickParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", required = true)
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "主键不能为空", groups = {Groups.Update.class})
    private Long id;

    @ApiModelProperty(value = "页面类型(home->首页,category->栏目首页,list->栏目列表页,page->单页面,show->详情页)", required = true)
    @NotBlank(message = "页面类型(home->首页,category->栏目首页,list->栏目列表页,page->单页面,show->详情页)不能为空")
    private String viewType;

    @ApiModelProperty(value = "栏目id")
    private Long categoryId;

    @ApiModelProperty(value = "内容id")
    private Long contentId;

    @ApiModelProperty(value = "页面访问量", required = true)
    @NotNull(message = "页面访问量不能为空")
    private Integer pageView;

    @ApiModelProperty(value = "业务状态")
    private Integer status;


}
